package edu.scau.pos215.mapper;

import edu.scau.pos215.domain.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CategoryMapper {
    //@Select("SELECT category_id,category_name FROM pos_category WHERE category_id = #{categoryId}")
    public Category getCategoryById(Long categoryId);

    //@Select("SELECT category_id,category_name FROM pos_category")
    public List<Category> listCategory(Category category);

    public int insertCategory(Category category);

    public int updateCategory(Category category);

    public int deleteCategoryById(Long categoryId);
}
